﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CLFramework.Infrastructure
{
    public abstract class EntityQuery
    {
        public EntityQuery()
        {
            KeysCacheable = true;
            EntitiesCacheable = true;
            KeysCacheDuration = 60;
        }

        public bool KeysCacheable { get; set; }
        public bool EntitiesCacheable { get; set; }

        /// <summary>
        /// Keys缓存时间
        /// </summary>
        public int KeysCacheDuration { get; set; }

        public abstract string GetCacheKey();
    }
}
